Viewing and Editing the XML Structure of a WS-AppServer Model |
|
Before you begin this task:
Create a data model using WS-AppServer Package generator.
The XML structure presents the detailed layout of the data model. It displays all the methods, attributes, and relations that exist in that model. It also displays whether a class is inherited or derived.
The option to edit is helpful when you want to add more attributes or methods to the model in the XML editor itself, without having to use the context menu. The moment you save the changes in the XML editor, they immediately reflect on the UI.
- Double-click the <WS-AppServer Package> from either of the following locations:
- Workspace Documents (My Recent Documents) window.
- Workspace Documents (Explorer) > <solution> > <project> . The WS-AppServer Package window appears, displaying all the models and their corresponding attributes, relations methods, and parameters.
- In the Models box, right-click a model and select View/Edit XML. The XML dialog box appears, displaying the structure of the model in XML.
- Modify the layout of the model by adding or removing attributes, methods, and parameters, if required. For example, if you add an attribute, it gets added to the list of attributes on the Attributes tab.
Tip: It is not mandatory to modify the XML structure. You may use this option just to view and study the XML structure of the model and replicate it in another custom model.
- Click . The changes, if any, are saved and the details of the model on the UI are updated accordingly.
- Close the XML dialog box.
You have viewed the XML structure of the WS-AppServer model.